package DataView;
import Store.Class;
import Store.Element;
import Store.Type;

public class AttributeInfo extends CDElementInfo 
{
	private Class ofClass;
	private Type type;
	
	public void setInfo(String name, Class ofClass, Type type) 
	{
		super.setInfo(name);
		this.ofClass=ofClass;
		this.type=type;
	}
	
	public Type getType()
	{
		return type;
	}
	
	public void setOfClass(Class c)
	{
		ofClass=c;
	}
	
	public Element containedIn()
	{
		return ofClass;
	}
	
	public AttributeInfo clone()
	{
		AttributeInfo clone = new AttributeInfo();
		clone.setInfo(getName(), null, type);
		return clone;
	}
}